package com.jp.knowledge.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.os.Handler;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;

import com.jp.knowledge.R;
import com.jp.knowledge.comm.JpApplication;
import com.jp.knowledge.dialog.WelDialog;
import com.jp.knowledge.logic.InviteFriendsLogic;
import com.jp.knowledge.logic.PersonLogic;
import com.jp.knowledge.service.LatestStateService;

/**
 * Created by 528787067@qq.com on 2017/7/27.
 */

public class WelcomeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		new PersonLogic(this).getUserData();
		new InviteFriendsLogic(this).getInviteData();
		startService(new Intent(this, LatestStateService.class));
		startActivity(new Intent(WelcomeActivity.this, HomeActivity.class));
		finish();
	}
}
